#define _CRT_SECURE_NO_WARNINGS 1
#include"AVLTree.h"
#include<string>
#include<stdlib.h>
int main()
{
	//int arr[] = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
	/*int arr[]={ 16, 3, 7, 11, 9, 26, 18, 14, 15 };
	AVLTree<int,int> str;
	for (auto& e : arr)
	{
		if (e == 7)
		{
			int i = 0;
		}
		str.insert(make_pair(e, e));
		cout << "insert" << e << ":" << str.IsBalance() << endl;
	}
	str.Inorder();*/
	srand(time(NULL));
	AVLTree<int, int> str;
	//int n = 100;
	for (int i = 0; i < 100; i++)
	{
		
		int ret = rand()+i;
		if (ret == 6336)
		{
			int j = 0;
		}
		str.insert(make_pair(ret,ret));
		//cout << ret << endl;
		cout << "insert" << ret << ":" << str.IsBalance() << endl;
	}
	//str.IsBalance();
	//str.Inorder();
	return 0;
}